Install_VFW% = 1 ''default is to install VFW drivers
MajorVer% = GetWindowsMajorVersion()
MinorVer% = GetWindowsMinorVersion()
IF MajorVer% < 3 OR (MajorVer% = 3 AND MinorVer% < 10) THEN
i% = DoMsgBox("Microsoft Windows version 3.10 or greater is required for this software. Please upgrade your version of Windows.", "Installation Problem", MB_OK+MB_TASKMODAL+MB_ICONHAND)
END
END IF
WinCheck95$ = WinSysDir$+"IOSUBSYS"
HasWin95% = DoesDirExist(WinCheck95$)
WinCheckNT$ = WinDir$+"SYSTEM32"
HasNT% = DoesDirExist(WinCheckNT$)
'$IFDEF DEMOQUICK
PRODUCT$ = "DEMOQUICK"
'$ELSEIFDEF VHELP
PRODUCT$ = "VHELP"
'$ELSEIFDEF PRODDE
PRODUCT$ = "PRODDE"
'$ELSEIFDEF CBIQUICK
PRODUCT$ = "CBIQUICK"
'$ELSEIFDEF CBIPRO
PRODUCT$ = "CBIPRO"
'$ELSE
i% = DoMsgBox("Product type not defined.", "Define product", MB_OK+MB_TASKMODAL+MB_ICONHAND)
END
'$ENDIF
WinSysDir$ = GetWindowsSysDir()
IF (HasNT%) OR ((MajorVer% = 3) AND (MinorVer% = 95)) THEN
Install_VFW% = 0
END IF
SetBitmap CUIDLL$, LOGO
IF (PRODUCT$="DEMOQUICK") OR (PRODUCT$="VHELP") OR (PRODUCT$="PRODDE") THEN
SetTitle "Demo/Tutorial Install ... Created with DEMOquick"
ELSE
SetTitle "Tutorial Install ... Created with CBIquick"
IF ((OKWRITE% <> 1) OR (OKWRITE1% <> 1) OR (OKWRITE2% <> 1) OR (OKWRITE3% <> 1)) THEN
i% = DoMsgBox("Can't access WINDOWS directory...VFW Video drivers will not be installed. Continuing the install.", "Setup Will Continue...", MB_OK+MB_TASKMODAL+MB_ICONINFORMATION)
i% = DoMsgBox("Your system administrator will need to load Microsoft Video-For-Windows 1.1a drivers if not already present.", "Video-For-Windows Drivers", MB_OK+MB_TASKMODAL+MB_ICONINFORMATION)
i% = DoMsgBox("Cannot access WINDOWS directory. Drivers not installed.", "Video-For-Windows Drivers", MB_OK+MB_TASKMODAL+MB_ICONINFORMATION)
ClearCopyList
ELSE
''Check windrive diskspace
SizeReq& = GetCopyListCost ("","", "")
IF SizeReq& <> 0 THEN
i% = DoMsgBox("The WINDOWS directory does not have enough disk space. VFW Drivers will need to be installed if not already present.", "Can't Install Video-For-Windows Drivers", MB_OK+MB_TASKMODAL+MB_ICONHAND)
ClearCopyList
Install_VFW% = 0
ELSE
CopyFilesInCopyList
ENDIF
ENDIF
ENDIF
''Update WIN.INI and SYSTEM.INI......................................
''Get the icon label def created by DQ in Create Disk
'$IFDEF DEMOQUICK
'$INCLUDE 'DEMOLABL.INC'
'$ELSEIFDEF VHELP
'$INCLUDE 'DM_LAB_D.INC'
'$ELSEIFDEF PRODDE
'$INCLUDE 'DM_LAB_D.INC'
'$ELSEIFDEF CBIQUICK
'$INCLUDE 'DEMOLABL.INC'
'$ELSEIFDEF CBIPRO
'$INCLUDE 'DM_LAB_D.INC'
'$ELSE
i% = DoMsgBox("Product type not defined.", "Define product", MB_OK+MB_TASKMODAL+MB_ICONHAND)
END
'$ENDIF
ClearCopyList
''Do RESTART if needed--------------------------------------------
IF RestartListEmpty() = 0 THEN
i% = DoMsgBox("Windows will now be exited and restarted.", "Setup Complete", MB_OK+MB_ICONINFORMATION)
err:
i% = ExitExecRestart()
i% = DoMsgBox("Windows cannot be restarted because MS-DOS applications are active. Close all MS-DOS applications and then click on OK.", "Setup Complete", MB_OK+MB_ICONSTOP)